<%@ page import="fm.web.CurrentRequest" %>
<%@ page import="fm.dto.NeiyiUser" %>
<%@ page import="fm.dto.SystemUser" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 61741
  Date: 2017/12/4
  Time: 20:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>目录</title>
    <meta charset="utf-8">
    <jsp:include page="../common/portal-head.jsp"></jsp:include>
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/portal/css/topmenu.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/portal/css/font-awesome.min.css">
    <style>
        #changeCity{
            font-size: 0.8rem;
            line-height:1rem;
            cursor: pointer;
        }
        i.fa.fa-map-marker {
            font-size:1rem;
        }
    </style>
</head>
<body>
<div class="top-flow-wrap">
    <span class="top-welcome">您好!欢迎来到内衣巴巴！</span>
    <i class="fa fa-map-marker"></i>
    <label class="location-lable" id="changeCity"onclick="showAreaDialog(this)">北京</label>
    <c:choose>
        <c:when test="${empty uid}">
            <div class="register-login-wrap">
                <span><i class="fa fa-cart-plus"></i>购物车</span>
                <span onclick="javascript:window.location.href='${ctx}/register'"><i class="fa fa-file"></i>注册</span> |
                <span onclick="javascript:window.location.href='${ctx}/admin/login'"><i
                        class="fa fa-user-circle"></i>登录</span>
            </div>
        </c:when>
        <c:otherwise>
            <div class="register-login-wrap">
                <c:if test="${userType!=0}">
                    <a href="#">
                        <i class="fa fa-cart-plus"></i>购物车
                    </a>
                </c:if>
                <a href="${ctx}/admin/index"><i class="fa fa-user-md"></i>${username}</a>
            </div>
        </c:otherwise>
    </c:choose>
</div>
<div class="top-menu-wrap">
    <img src="${ctx}/resources/portal/img/mylogo.jpg" onclick="javascript:window.location.href='${ctx}/home'" class="logo">
    <ul class="top-main-menu">
        <li onclick="javascript:window.location.href='${ctx}/home'">首页
        </li>
        <li onclick="javascript:window.location.href='${ctx}/seller/index/seller'">厂商、供应商资讯
        </li>
        <li onclick="javascript:window.location.href='${ctx}/seller/index/agency'">代理商资讯
        </li>
        <li onclick="javascript:window.location.href='${ctx}/seller/index/parts'">辅助料/配件商资讯
        </li>
        <li onclick="javascript:window.location.href='${ctx}/logistics'">物流资讯
        </li>
        <li onclick="javascript:window.location.href='${ctx}/info'">行业热门资讯
        </li>
        <li onclick="javascript:window.location.href='${ctx}/allgoods/index'">全部商品
        </li>
    </ul>
</div>
</body>
</html>
